package com.lesso.yjy.sunflower.app.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.lesso.yjy.sunflower.domain.service.EmployeeDeviceDomainService;
import com.lesso.yjy.sunflower.pojo.dto.EmployeeDeviceDTO;
import com.lesso.yjy.sunflower.pojo.dto.EmployeeDeviceQueryDTO;
import com.lesso.yjy.sunflower.pojo.vo.EmployeeDeviceVO;
import com.lesso.yjy.sunflower.pojo.vo.EmployeeVO;
import com.lesso.yjy.sunflower.service.IEmployeeDeviceService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

@Service
@DubboService
public class EmployeeDeviceServiceImpl implements IEmployeeDeviceService {
    private final EmployeeDeviceDomainService employeeDeviceDomainService;

    public EmployeeDeviceServiceImpl(EmployeeDeviceDomainService employeeDeviceDomainService){
        this.employeeDeviceDomainService = employeeDeviceDomainService;
    }

    @Override
    public Long save(EmployeeDeviceDTO dto){
        return employeeDeviceDomainService.save(dto);
    }

    @Override
    public Page<EmployeeDeviceVO> page(EmployeeDeviceQueryDTO dto){
        return employeeDeviceDomainService.page(dto);
    }

    @Override
    public Page<EmployeeDeviceVO> customPage(EmployeeDeviceQueryDTO dto){
        return employeeDeviceDomainService.customPage(dto);
    }

    @Override
    public void deleteById(Long id){
        employeeDeviceDomainService.deleteById(id);
    }

    @Override
    public void update(EmployeeDeviceDTO dto){
        employeeDeviceDomainService.update(dto);
    }
}
